//copyright yaygut.com 
var car;
function latkar () {
car = document.transcription.text2.value;

//ELİF
car = car.replace(/e/g, "ا");
//car = car.replace(/A/g, "ع");

//BE
car = car.replace(/b/g, "ب");
car = car.replace(/B/g, "ب");

//PE
car = car.replace(/p/g, "پ");
car = car.replace(/P/g, "پ");

//TE
car = car.replace(/t/g, "ت");

//PELTEK SE
car = car.replace(/x/g, "ث");


//CİM
car = car.replace(/c/g, "ج");
car = car.replace(/C/g, "ج");

//ÇIM
car = car.replace(/ç/g, "چ");
car = car.replace(/Ç/g, "چ");

//HA
car = car.replace(/H/g, "ح");
//car = car.replace(/H/g, "ه");

//HI
car = car.replace(/Q/g, "خ");
//car = car.replace(/X/g, "خ");

//DAL
car = car.replace(/d/g, "د");
//car = car.replace(/D/g, "د");


//ZEL
car = car.replace(/X/g, "ذ");

//RE
car = car.replace(/r/g, "ر");
car = car.replace(/R/g, "ر");

//ZE
car = car.replace(/z/g, "ز");
//car = car.replace(/Z/g, "ز");

//JE
car = car.replace(/j/g, "ژ");
car = car.replace(/J/g, "ژ");

//SİN
car = car.replace(/s/g, "س");

//ŞIN
car = car.replace(/ş/g, "ش");
car = car.replace(/Ş/g, "ش");

//SAD
car = car.replace(/S/g, "ص");

//DAD
car = car.replace(/D/g, "ض");

//TI
car = car.replace(/T/g, "ط");


//ZI
car = car.replace(/Z/g, "ظ");

//AYN
car = car.replace(/ğ/g, "ع");

//GAYN
car = car.replace(/Ğ/g, "غ");


//FE
car = car.replace(/f/g, "ف");
car = car.replace(/F/g, "ف");

//KAF
car = car.replace(/q/g, "ق");

//KEF
car = car.replace(/k/g, "ك");
car = car.replace(/G/g, "ك");


//LAM
car = car.replace(/l/g, "ل");
car = car.replace(/L/g, "ل");

//MİM
car = car.replace(/m/g, "م");
car = car.replace(/M/g, "م");

//NUN
car = car.replace(/n/g, "ن");
car = car.replace(/N/g, "ن");

//VAV
car = car.replace(/v/g, "و");
car = car.replace(/V/g, "و");
car = car.replace(/u/g, "و");
car = car.replace(/U/g, "و");

//HE
car = car.replace(/h/g, "ه");

//LAM ELİF
//car = car.replace(/J/g, "ﻻ");

//YE
car = car.replace(/y/g, "ى");
car = car.replace(/Y/g, "ى");

//KARIŞIK
car = car.replace(/a/g, "آ");
car = car.replace(/A/g, "آ");

car = car.replace(/E/g, "أ");


car = car.replace(/i/g, "إ");
car = car.replace(/ı/g, "إ");


car = car.replace(/g/g, "گ");
car = car.replace(/K/g, "گ");

car = car.replace(/İ/g, "ي");
car = car.replace(/I/g, "ي");

car = car.replace(/ö/g, "ة");
car = car.replace(/Ö/g, "ة");

car = car.replace(/w/g, "ئ");
car = car.replace(/W/g, "ئ");

car = car.replace(/ü/g, "ڭ");
car = car.replace(/Ü/g, "ڭ");

car = car.replace(/o/g, "ۀ");
car = car.replace(/O/g, "ۀ");


//car = car.replace(/ü/g, "و");
//car = car.replace(/Ü/g, "و");

//car = car.replace(/v/g, "و");
//car = car.replace(/V/g, "و");

//car = car.replace(/y/g, "ى");
//car = car.replace(/Y/g, "ى");

//car = car.replace(/e/g, "ه");
//car = car.replace(/E/g, "أ");

//RAKAMLAR
car = car.replace(/1/g, "۱");
car = car.replace(/2/g, "۲");
car = car.replace(/3/g, "۳");
car = car.replace(/4/g, "٤");
car = car.replace(/5/g, "٥");
car = car.replace(/6/g, "٦");
car = car.replace(/7/g, "٧");
car = car.replace(/8/g, "٨");
car = car.replace(/9/g, "٩");
car = car.replace(/0/g, "۰");
car  = car.replace(/\?/g, "؟");
car  = car.replace(/\;/g, "؛");
car  = car.replace(/\,/g, "،");
car = car.replace(/\//g, "\u200b");
car = car.replace(/’/g, "\'");
car = car.replace(/a/g, "ا");
car = car.replace(/اا/g, "آ");
car = car.replace(/â/g, "آ");
car  = car.replace(/-/g, "ء");
//car  = car.replace(/h/g, "ه");
//car  = car.replace(/e/g, "ه");
car  = car.replace(/é/g, "ه");

//TÜRKÇEDE OLMAYAN DİĞERLERİ

//car = car.replace(/q/g, "ق");
//car = car.replace(/Q/g, "ق");

//car = car.replace(/w/g, "و");
//car = car.replace(/W/g, "و");

//car = car.replace(/w/g, "ع");
//car = car.replace(/e/g, "ي");
//car = car.replace(/e/g, "ي");
//car = car.replace(/e/g, "ي");
//car = car.replace(/e/g, "ي");
//car = car.replace(/e/g, "ي");
//car = car.replace(/e/g, "ي");
//car = car.replace(/e/g, "ي");
//car = car.replace(/e/g, "ي");
//car = car.replace(/e/g, "ي");
//car = car.replace(/e/g, "ي");
//car = car.replace(/e/g, "ي");
//car = car.replace(/e/g, "ي");
//car = car.replace(/e/g, "ي");
//car = car.replace(/e/g, "ي");
//car = car.replace(/e/g, "ي");
//car = car.replace(/e/g, "ي");
//car = car.replace(/e/g, "ي");




 document.transcription.text1.value=car;
}
function karlat () {
car = document.transcription.text1.value;

//**************METİN KUTUSUNDAN TERSİNE ÇEVİRİYORUZ+++++++++++++++++++++++++++++++++++++++++++++++++



//ELİF
car = car.replace(/ا/g, "e");
//car = car.replace(/A/g, "ع");

//BE
car = car.replace(/ب/g, "b");
car = car.replace(/B/g, "ب");

//PE
car = car.replace(/پ/g, "p");
car = car.replace(/پ/g, "P");

//TE
car = car.replace(/ت/g, "t");

//PELTEK SE
car = car.replace(/ث/g, "x");


//CİM
car = car.replace(/ج/g, "c");
car = car.replace(/ج/g, "C");

//ÇIM
car = car.replace(/چ/g, "ç");
car = car.replace(/چ/g, "Ç");

//HA
car = car.replace(/ح/g, "H");
//car = car.replace(/H/g, "ه");

//HI
car = car.replace(/خ/g, "Q");
//car = car.replace(/X/g, "خ");

//DAL
car = car.replace(/د/g, "d");
//car = car.replace(/D/g, "د");


//ZEL
car = car.replace(/ذ/g, "X");

//RE
car = car.replace(/ر/g, "r");
car = car.replace(/ر/g, "R");

//ZE
car = car.replace(/ز/g, "z");


//JE
car = car.replace(/ژ/g, "j");
car = car.replace(/ژ/g, "J");

//SİN
car = car.replace(/س/g, "s");

//ŞIN
car = car.replace(/ش/g, "ş");
car = car.replace(/ش/g, "Ş");

//SAD
car = car.replace(/ص/g, "S");

//DAD
car = car.replace(/ض/g, "D");

//TI
car = car.replace(/ط/g, "T");


//ZI
car = car.replace(/ظ/g, "Z");

//AYN
car = car.replace(/ع/g, "ğ");

//GAYN
car = car.replace(/غ/g, "Ğ");


//FE
car = car.replace(/ف/g, "f");
car = car.replace(/ف/g, "F");

//KAF
car = car.replace(/ق/g, "q");

//KEF
car = car.replace(/ك/g, "k");
car = car.replace(/ك/g, "G");


//LAM
car = car.replace(/ل/g, "l");
car = car.replace(/ل/g, "L");

//MİM
car = car.replace(/م/g, "m");
car = car.replace(/م/g, "M");

//NUN
car = car.replace(/ن/g, "n");
car = car.replace(/ن/g, "N");

//VAV
car = car.replace(/و/g, "v");
car = car.replace(/و/g, "V");
car = car.replace(/و/g, "u");
car = car.replace(/و/g, "U");

//HE
car = car.replace(/ه/g, "h");

//LAM ELİF
//car = car.replace(/ﻻ/g, "J");

//YE
car = car.replace(/ى/g, "y");
car = car.replace(/ى/g, "Y");


//KARIŞIK
car = car.replace(/آ/g, "a");
car = car.replace(/آ/g, "A");

car = car.replace(/أ/g, "E");

car = car.replace(/إ/g, "i");
car = car.replace(/إ/g, "ı");


car = car.replace(/گ/g, "g");
car = car.replace(/گ/g, "K");

car = car.replace(/ي/g, "İ");
car = car.replace(/ي/g, "I");

car = car.replace(/ة/g, "ö");
car = car.replace(/ة/g, "Ö");


car = car.replace(/ئ/g, "w");
car = car.replace(/ئ/g, "W");

car = car.replace(/ڭ/g, "ü");
car = car.replace(/ڭ/g, "Ü");

car = car.replace(/ۀ/g, "o");
car = car.replace(/ۀ/g, "O");



//RAKAMLAR
car = car.replace(/۱/g, "1");
car = car.replace(/۲/g, "2");
car = car.replace(/۳/g, "3");
car = car.replace(/٤/g, "4");
car = car.replace(/٥/g, "5");
car = car.replace(/٦/g, "6");
car = car.replace(/٧/g, "7");
car = car.replace(/٨/g, "8");
car = car.replace(/٩/g, "9");
car = car.replace(/۰/g, "0");


//car = car.replace(/ه/g, "e");
//car = car.replace(/ه/g, "e");
//car = car.replace(/ه/g, "e");



document.transcription.text2.value=car;
}
function copy1()
{ textRange=document.transcription.text1.createTextRange(); textRange.execCommand("Copy"); textRange="";
}
function copy2()
{ textRange=document.transcription.text2.createTextRange(); textRange.execCommand("Copy"); textRange="";
}